<header class="header">
	<?php echo $this->Html->link('Admin-Truong-My', array(
		'controller' => 'dashboard',
		'action' => 'index',
		'admin' => true
	), array(
		'class' => 'logo'
	)); ?>
	<!-- Header Navbar: style can be found in header.less -->
	<nav class="navbar navbar-static-top" role="navigation">
		<!-- Sidebar toggle button-->
		<a href="#" class="navbar-btn sidebar-toggle" data-toggle="offcanvas" role="button"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </a>
		<div class="navbar-right">
			<ul class="nav navbar-nav">
				<!-- User Account: style can be found in dropdown.less -->
				<li class="dropdown user user-menu">
					<a href="#" class="dropdown-toggle" data-toggle="dropdown"> <i class="glyphicon glyphicon-user"></i> <span><?php echo $user['username'];?> <i class="caret"></i></span> </a>
					<ul class="dropdown-menu">
						<!-- User image -->
						<li class="user-header bg-light-blue">
							<?php echo $this->Html->image('avatar3.png', array(
								'class' => 'img-circle',
								'alt' => 'User Image'
							)); ?>
							<p>
								<?php echo $user['username'] . ' - ' . $user['role']; ?>
								<small>Member since Nov. 2012</small>
							</p>
						</li>
						
						<li class="user-footer">
							<div class="pull-right">
								<?php echo $this->Html->link('Sign out', array(
									'controller' => 'login',
									'action' => 'logout',
									'admin' => true
								), array(
									'class' => 'btn btn-default btn-flat'
								)); ?>
							</div>
						</li>
					</ul>
				</li>
			</ul>
		</div>
	</nav>
</header>